import { defineConfig, presetIcons, transformerDirectives, transformerVariantGroup } from "unocss";
import { presetUni } from "@uni-helper/unocss-preset-uni";

export default defineConfig({
  presets: [
    presetIcons({
      scale: 1.2,
      warn: true,
    }),
    presetUni({
      remRpx: false,
      uno: {
        dark: "class",
      },
    }),
  ],

  shortcuts: [["center", "flex justify-center items-center"]],
  transformers: [
    transformerDirectives(), // 启用 @apply 功能
    transformerVariantGroup(), // 启用 () 分组功能
  ],
});
